package com.woniu.new_orange.finance_model_guo.controller;

import com.woniu.new_orange.entity.ApprovedMemo;
import com.woniu.new_orange.finance_model_guo.Vo.ApprovedMemoVo;
import com.woniu.new_orange.finance_model_guo.service.ApprovedMemoService;
import com.woniu.new_orange.util.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Program: new_orange->ApprovedMemoController
 * @Description:
 * @Author: 谭少琛的爸爸
 * @Date: 2023-02-02 14:59
 * @Version： 1.0
 **/
@RestController
@RequestMapping("approved")
@Api(tags = "产品审核表")
public class ApprovedMemoController {
    @Resource
    private ApprovedMemoService approvedMemoService;
    @ApiOperation(value = "查全部",notes = "进行查询全部")
    @GetMapping("queryAll")
    public Result query(){
        List<ApprovedMemoVo> approvedMemos = approvedMemoService.selectAll();
        return Result.ok().data("approvedMemoList",approvedMemos);
    }
}
